<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <meta name="page-view-size" content="1280*720">
    <link rel="stylesheet" href="./css/base.css">
    <link rel="stylesheet" href="./css/index.css">
    <script src="js/indexconfig.js"></script>
    <script type="text/javascript" src="./lib/js/evm.js"></script>
    <script type="text/javascript" src="./lib/js/Evm_djyw.js"></script>
    <script type="text/javascript" src="./lib/js/key.js"></script>
    <script src="./lib/js/md5.js" type="text/javascript" charset="utf-8"></script>
    <script src="./lib/js/jquery-1.11.1.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="./lib/js/jquery.cookie.js" type="text/javascript" charset="utf-8"></script>
    <script src="./js/api.js" type="text/javascript" charset="utf-8"></script>
    <script src="./js/public.js" type="text/javascript" charset="utf-8"></script>
    <script>
        marqueerun = true
    </script>
    <style>
        * {
            transition: all .5s ease;
        }
    </style>
</head>


<body>
    <div class="index-bg" id="indexMain">


    </div>
</body>
<script src="js/video.js"></script>
<script>
    TV.structure("<img class=crumbsTitle_img src='images/logo.png'>")
    {
        var mp;
    }
    var modelIndex = {
        disHeader: true,
        isVideo: true,
        isIndex: true,
        index: 0, //初始位置
        listName: 'model', //模块名称
        containerId: 'indexMain' //包含模块的标签id
    }
    function direOpt(index, directive) {
        console.log(index)
        var newIndex = (index == -1) ? (directive == 'down' ? 0 : -1) : indexData[index][directive]
        return newIndex
    }
    function direEnter(index) {
        // TV.PromptMsg(getBrowser())
        // mp.stop();
        if (index == 0) {
            videoplay.play("http://112.122.5.65:9103/index.mp4")
            window.location.reload()
        } else {
            if (index == 1) {
                window.location.href = "pages/" + indexData[index].template + ".html?model=" + indexData[index].model
            } else {
                window.location.href = "pages/" + indexData[index].template + ".html?model=" + indexData[index].model
            }
            return
        }
    }
</script>
<script>
    //根据indexData生成model
    var models = "";
    for (var i = 0; i < indexData.length; i++) {
        if (i == 0) {
            models += '<div class="model"><video class=indexvideo width=100% height=100% src=' + "http://112.122.5.65:9103/index.mp4" + ' autoplay="autoplay" loop="loop" ></video></div>';

        } else {
            models += indexData[i].img ? '<div class="model"><img src=' + indexData[i].img + ' /></div>' : '<div class="model"></div>'

        }
    }
    $('#indexMain').append(models)
</script>
<script type="text/javascript" src="js/indexfast.js"></script>

</html>